package com.kotlin.android.ktx.ext

import androidx.core.text.HtmlCompat

/**
 * 创建者: zl
 * 创建时间: 2020/6/10 5:15 PM
 * 描述:
 */
fun String?.htmlToSpanned() =
    if (this.isNullOrEmpty()) "" else HtmlCompat.fromHtml(this, HtmlCompat.FROM_HTML_MODE_LEGACY)